package com.sakura.java8.lambda.service.impl;

import com.sakura.java8.lambda.pojo.Employee;
import com.sakura.java8.lambda.service.MyPredicate;

/**
 * @Author Sakura
 * @Date 2022/11/7 14:32
 * @Version 1.0
 */
public class FilterEmployeeForSalary implements MyPredicate<Employee> {

    @Override
    public boolean test(Employee t) {
        return t.getSalary() >= 5000;
    }

}